package com.gdawj.javabeans.xml;

import java.io.Serializable;


public class EtudiantCoursID implements Serializable {

    private Long idEtudiant;
    private Long idCours;

    public EtudiantCoursID() {
    }

    public EtudiantCoursID(Long idEtudiant, Long idCours) {
        this.idEtudiant = idEtudiant;
        this.idCours = idCours;
    }

    public Long getIdCours() {
        return idCours;
    }

   
    public Long getIdEtudiant() {
        return idEtudiant;
    }


    @Override
    public int hashCode() {
        int hash = 0;
        hash += (long) idEtudiant;
        hash += (long) idCours;
        return hash;
    }

   
    @Override
    public boolean equals(Object object) {
        if (!(object instanceof EtudiantCoursID)) {
            return false;
        }
        EtudiantCoursID other=(EtudiantCoursID)object;
        if (this.idCours!=other.idCours) {
            return false;
        }
        if (this.idEtudiant != other.idEtudiant) {
            return false;
        }
        return true;
    }

}
